package rui.pa.contactospa;



import java.util.ArrayList;
import java.util.List;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class Contactos extends ActionBar {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_contactos);
		
		
		
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_contactos, menu);
	
		return true;
	}

	private void atualizarContactos(){
		ArrayAdapter<Pessoa> adaptador =
		new ArrayAdapter<Pessoa>(this,
		android.R.layout.simple_list_item_1,
		Contactos.getAll());
		ListView lista = (ListView)
		findViewById(R.id.listViewContactos);
		lista.setAdapter(adaptador);
		}
	
	public static List<Pessoa> getAll(){
		return new ArrayList<Pessoa>();
		}

}
